package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the note database table.
 * 
 */
@Entity
@NamedQuery(name="Note.findAll", query="SELECT n FROM Note n")
public class Note implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int idNote;

	private byte absent;

	private byte defaillant;

	private float note;

	private int session;

	//bi-directional many-to-one association to Formationannee
	@ManyToOne
	@JoinColumn(name="idFormationAnnee")
	private Formationannee formationannee;

	//bi-directional many-to-one association to Module
	@ManyToOne
	@JoinColumn(name="idModue")
	private Module module;

	//bi-directional many-to-one association to Etudiant
	@ManyToOne
	@JoinColumn(name="idEtudiant")
	private Etudiant etudiant;

	public Note() {
	}

	public int getIdNote() {
		return this.idNote;
	}

	public void setIdNote(int idNote) {
		this.idNote = idNote;
	}

	public byte getAbsent() {
		return this.absent;
	}

	public void setAbsent(byte absent) {
		this.absent = absent;
	}

	public byte getDefaillant() {
		return this.defaillant;
	}

	public void setDefaillant(byte defaillant) {
		this.defaillant = defaillant;
	}

	public float getNote() {
		return this.note;
	}

	public void setNote(float note) {
		this.note = note;
	}

	public int getSession() {
		return this.session;
	}

	public void setSession(int session) {
		this.session = session;
	}

	public Formationannee getFormationannee() {
		return this.formationannee;
	}

	public void setFormationannee(Formationannee formationannee) {
		this.formationannee = formationannee;
	}

	public Module getModule() {
		return this.module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public Etudiant getEtudiant() {
		return this.etudiant;
	}

	public void setEtudiant(Etudiant etudiant) {
		this.etudiant = etudiant;
	}

}